@echo off
cd /d D:/
(echo %~dp0\%) > path.txt
set /a i=%random:~-3%
if %i%==0 set /a i=1000
(echo %i%) >randomn.txt

"%~dp0\StataMP-64" /e do %~dp0\grouping2.do
exit